package com.ruoyi.purchase.domain;

/**
 * 用于向前端传递历史计划的格式化统计信息
 *
 * @author kevinness
 * @date 2025/1/7
 */

public class HistoryPlanParams {
    /**
     * 货品名称
     */
    private String rawProductName;

    /**
     * 需要订购数量
     */
    private Double quantity;

    /**
     * 订购数量
     */
    private Double purchaseQuantity;

    public HistoryPlanParams() {

    }

    public HistoryPlanParams(PurchasePlan purchasePlan) {
        this.quantity = purchasePlan.getQuantity();
        this.purchaseQuantity = purchasePlan.getPurchaseQuantity();
        this.rawProductName = purchasePlan.getRawProductName();
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getPurchaseQuantity() {
        return purchaseQuantity;
    }

    public void setPurchaseQuantity(Double purchaseQuantity) {
        this.purchaseQuantity = purchaseQuantity;
    }

    public String getRawProductName() {
        return rawProductName;
    }

    public void setRawProductName(String rawProductName) {
        this.rawProductName = rawProductName;
    }

    @Override
    public String toString() {
        return "HistoryPlanParams{" +
                "rawProductName='" + rawProductName + '\'' +
                ", quantity=" + quantity +
                ", purchaseQuantity=" + purchaseQuantity +
                '}';
    }
}
